package cn.liberals.user.service.impl;

import cn.liberals.user.domain.Logininfo;
import cn.liberals.user.service.ILogininfoService;
import cn.liberals.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liberals
 * @since 2022-07-06
 */
@Service
public class LogininfoServiceImpl extends BaseServiceImpl<Logininfo> implements ILogininfoService {

    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public void logout() {
        redisTemplate.opsForValue().set("token","");
        redisTemplate.opsForValue().set("logininfo","");
    }
}
